package org.hishen.example.service.admin.system;

import java.util.List;

import javax.annotation.Resource;

import org.hishen.example.entity.system.Menu;
import org.hishenframework.core.hibernate.EasyOperater;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class MenuService {
	
	@Resource
	private EasyOperater op;
	
	/**
	 * 获取目录根节点
	 * @return
	 */
	public List<Menu> getRoot() {
		return op.list("from Menu where parent is null");
	}
}
